﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tasks.Common.Enum;

namespace Tasks.Common.Entitys
{
    /// <summary><c>TicketGroup</c> Business Object.</summary>
    [Serializable]
    public partial class TicketGroup
    {

        #region ID

        private Int32 m_iD;

        /// <summary>Gets or sets ID</summary>
        public Int32 ID
        {
            get { return m_iD; }
            set { m_iD = value; }
        }

        #endregion

        #region Name

        private String m_name;

        /// <summary>Gets or sets Name</summary>
        public String Name
        {
            get { return m_name; }
            set { m_name = value; }
        }

        #endregion

        #region Price

        private Decimal m_price;

        /// <summary>Gets or sets Price</summary>
        public Decimal Price
        {
            get { return m_price; }
            set { m_price = value; }
        }

        #endregion

        #region Intro

        private String m_intro;

        /// <summary>Gets or sets Intro</summary>
        public String Intro
        {
            get { return m_intro; }
            set { m_intro = value; }
        }

        #endregion

        #region Remark

        private String m_remark;

        /// <summary>Gets or sets Remark</summary>
        public String Remark
        {
            get { return m_remark; }
            set { m_remark = value; }
        }

        #endregion

        #region UserCount

        private Int32 m_userCount;

        /// <summary>Gets or sets UserCount</summary>
        public Int32 UserCount
        {
            get { return m_userCount; }
            set { m_userCount = value; }
        }

        #endregion

        #region AvailableDay

        private Int32 m_availableDay;

        /// <summary>激活卡后的有效使用天数</summary>
        public Int32 AvailableDay
        {
            get { return m_availableDay; }
            set { m_availableDay = value; }
        }

        #endregion

        #region State

        private Int32 m_state;

        /// <summary>Gets or sets State</summary>
        public Int32 State
        {
            get { return m_state; }
            set { m_state = value; }
        }

        #endregion

        public string Tips { get; set; }
        public string Journey { get; set; }
        public string PreviewPhoto { get; set; }

        public decimal BusinessPrice { get; set; }
        public DateTime AvailableTime1 { get; set; }
        public DateTime AvailableTime2 { get; set; }
        public string ToStateStr()
        {
            return CommonUtil.GetEnumDescription(typeof(TicketGroupState), this.State);
        }
        public string No { get; set; }

        public string  Description { get; set; }
        public decimal MarketPrice { get; set; }
    
    }

}